<script setup lang="ts">
import { ref } from 'vue'

const intro = ref('今天在下大雨')
const myTag = ref('<h3>最大通知</h3><p>还有半小时下课</p>')
</script>

<template>
  <div class="app-page">
    <!-- 如果碰到内容渲染-----选择v-html -->
    <div v-text="intro"></div>
    <div v-text="myTag"></div>
    <p>--------------------------</p>
    <div v-html="myTag"></div>
  </div>
</template>

<style lang="css" scoped></style>
